package com.etouch.security.exception;
/**
 * @author chenyunchang
 * @title
 * @date 2019/9/13 18:17
 * @Description: 返回异常信息枚举类
 */
@SuppressWarnings("ALL")
public enum ExceptionEnum {

    USERNAME_OR_PASSWORD_ERRO(10001,"用户名或密码错误"),
    USER_HAD_UNABLE(10002,"该用户已停用"),
    USER_NOT_FOUND(10003, "用户不存在或已删除"),

    SYSTEM_ERROR(500, "系统错误,请稍后再试"),
    ;

    private Integer status;
    private String message;

    ExceptionEnum(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
